]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Drop unused Message._onDestroy()
authorJulian Sparber <julian@sparber.net>
Wed, 22 May 2024 08:45:04 +0000 (10:45 +0200)
committerJulian Sparber <julian@sparber.net>
Sun, 2 Feb 2025 17:40:14 +0000 (17:40 +0000)
This method isn't used and users (e.g extensions) of `Message` can connect
to the destroy signal if they need it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3429>

js/ui/messageList.js

index cf19648d1681ba10b5f2f35c383d0d8ec256e488..c62b4c1f42747102412406440f7183adfd3c3e02 100644 (file)
@@ -489,8 +489,6 @@ export const Message = GObject.registerClass({
         });
         contentBox.add_child(this._bodyBin);
 
-        this.connect('destroy', this._onDestroy.bind(this));
-
         this._header.closeButton.connect('clicked', this.close.bind(this));
         this._header.closeButton.visible = this.canClose();
 
@@ -642,9 +640,6 @@ export const Message = GObject.registerClass({
         return false;
     }
 
-    _onDestroy() {
-    }
-
     vfunc_key_press_event(event) {
         let keysym = event.get_key_symbol();